package com.xuanwei.core.enums;

import com.xuanwei.core.courier.QueryCourier;
import com.xuanwei.core.courier.ZTQuery;

/**
 * @Author jiangyong
 * @Description TODO
 * @Date 2019/8/8 17:48
 **/
public enum CourierCompany {

    ZHONG_TONG("zhongtong","中通",new ZTQuery()),
    YUAN_TONG("yuantong","圆通",new ZTQuery()),
    SHEN_TONG("shentong","申通",new ZTQuery()),
    YOU_ZHENG("youzheng","邮政",new ZTQuery())
    ;

    private String code;

    private String name;

    private QueryCourier queryCourier;

    CourierCompany(String code, String name, QueryCourier queryCourier) {
        this.code = code;
        this.name = name;
        this.queryCourier = queryCourier;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public QueryCourier getQueryCourier() {
        return queryCourier;
    }

    public void setQueryCourier(QueryCourier queryCourier) {
        this.queryCourier = queryCourier;
    }}
